﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using RESTServices.Dominio;

namespace RESTServices
{
    [ServiceContract]
    public interface ISalas
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Salas", ResponseFormat = WebMessageFormat.Json)]
        Sala CrearSala(Sala salaAcrear);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Salas/{idsala}", ResponseFormat = WebMessageFormat.Json)]
        Sala ObtenerSala(string idsala);

        [OperationContract]
        [WebInvoke(Method = "PUT", UriTemplate = "Salas", ResponseFormat = WebMessageFormat.Json)]
        Sala ModificarSala(Sala salaAModificar);

        [OperationContract]
        [WebInvoke(Method = "DELETE", UriTemplate = "Salas/{idsala}", ResponseFormat = WebMessageFormat.Json)]
        void EliminarSala(string idsala);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Salas/", ResponseFormat = WebMessageFormat.Json)]
        List<Sala> ListarSalas();
    }
}
